<? 
	error_reporting(E_ALL);
	require_once "../../commons/includes/authentication.inc"; 	
	require_once "../../commons/includes/editjs.inc"; 
	require_once "../../commons/includes/stringutils.inc"; 
	require_once "../../commons/includes/connection.inc"; 
	
	$Codice = $_REQUEST["Codice"];
	$sql = "
			SELECT   
			UnitaMAcquistoStd,
			UnitaMConsumoStd
			from ArticoliEstensioni 
			where CodiceArticolo='$Codice';
	";
	echo $sql;
	$rs = rs($sql, "","Controllo");
	$values = $rs->getRow();
	foreach($values as $key=>$val) $$key = $val; 
	
	@$rs->freeResult();

	echo "<script>
			try{parent.um_afterload('$UnitaMConsumoStd');}catch(e){}
			try{parent.uma_afterload('$UnitaMAcquistoStd');}catch(e){}
		</script>";
?>